package com.jesse.eclgy.plug.logging;


/**
 * 自定义日志
 * @Author: jesse
 * @Date: 2022/3/7 21:35
 */
public class LoggerFactory {
    private static final String loggerName = "plug";

    private static Log4JLogger _initialize;

    public LoggerFactory()
    {
    }

    public static Logger getLogger(String var0, String var1)
    {
        if ("".equals(var0))
        {
            var0 = loggerName;
        }

        // if (_initialize == null) {
        _initialize = new Log4JLogger();
        _initialize.setClassname(var1);
        _initialize.init(var0);

        //    }

        return _initialize;
    }

    public static Logger getLogger(Class var0)
    {
        return getLogger(loggerName, var0.getCanonicalName());
    }

    public static Logger getLogger(String var0)
    {
        return getLogger(loggerName, var0);
    }

    public static Logger getLogger()
    {
        String var0 = Thread.currentThread().getStackTrace()[2].getClassName();
        return getLogger(loggerName, var0);
    }
}

